package org.zhadoop.stream.cql.semanticanalyzer.parser.visitor;

import org.zhadoop.stream.cql.semanticanalyzer.parser.CQLParser.DdlStatementContext;
import org.zhadoop.stream.cql.semanticanalyzer.parser.CQLParser.ExecStatementContext;
import org.zhadoop.stream.cql.semanticanalyzer.parser.context.ParseContext;

public class ApplicationVisitor extends AbsCQLParserBaseVisitor<ParseContext>{

	private ParseContext context = null;
	
	public ApplicationVisitor() {
	}
	
	
	@Override
	protected ParseContext defaultResult() {
		return context;
	}
	
	@Override
	public ParseContext visitDdlStatement(DdlStatementContext ctx) {
		DDLStatementVisitor visitor = new DDLStatementVisitor();
		context = visitor.visit(ctx);
		return context;
	}
	
	@Override
	public ParseContext visitExecStatement(ExecStatementContext ctx) {
		ExecStatementVisitor visitor = new ExecStatementVisitor();
        context = visitor.visit(ctx);
		return context;
	}

}
